﻿using System.Xml;

namespace SSP.Api.Interfaces
{
    /// <summary>
    /// 
    /// </summary>
    public interface IDeserializer
    {
        /// <summary>
        /// Deserializes from an XmlReader and sets the object's properties.
        /// </summary>
        /// <param name="reader">The reader.</param>
        void DeserializeFromReader(XmlReader reader);

        /// <summary>
        /// Gets or sets the <see cref="System.String"/> with the specified property name.
        /// </summary>
        /// <value></value>
        string this[string propertyName]
        {
            get;
            set;
        }
    }
}